#include "ForwardList.h"
#include <iostream>
using namespace std;

void main()
{
	ForwardList<int> fli;

	int a = 1;
	int b = 2;
	int c = 3;
	int d = 4;
	fli.push_front(c);
	fli.push_front(a);
	fli.push_front(d);
	fli.push_front(b);

	fli.sort();


 	for (auto it = fli.begin(); it != fli.end(); it++)
	{
		cout << " " << it->value << endl;
	}





	system("pause");
}